# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=marco
pkgver=1.26.2
pkgrel=1
pkgdesc="MATE window manager"
url="https://github.com/mate-desktop/marco"
arch="all"
license="GPL-2.0-or-later"
depends="
	libxml2-utils
	mate-common
	mate-desktop
	yelp-tools
	"
makedepends="
	glib-dev
	gtk+3.0-dev
	intltool
	itstool
	libcanberra-dev
	libtool
	libxcomposite-dev
	libxpresent-dev
	libxres-dev
	startup-notification-dev
	zenity
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/marco-$pkgver.tar.xz
	startup-notification-long.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-static=no \
		--prefix=/usr
	make CFLAGS+=" -D_GNU_SOURCE"
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
326ed378be891806a9750021626863e00d80f29af8fe920eeb0910d9eb2ece534babf012e1aced6b071b6c0fdd8a77ea8c948d68a70f9280822b30231aa934b9  marco-1.26.2.tar.xz
ad5a84871c4fb16bb27f840cdee1ccf73a018e76c8d729a03e6c0eb424f6c4f7cc9a32216b27a73cae200813daae08a103faac4aeac62b112e443774540a6e63  startup-notification-long.patch
"
